home *** CD-ROM | disk | FTP | other *** search
- /* ./sym/c_gpr.c generated from c_gpr.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "c_gpr.psw"
- #line 10 "./sym/c_gpr.c"
- void PSWDefs( void )
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- char obj6[2];
- } _dpsQ;
- static const _dpsQ _dpsF = {
- DPS_DEF_TOKENTYPE, 4, 54,
- {DPS_LITERAL|DPS_NAME, 0, 2, 48}, /* ML */
- {DPS_EXEC|DPS_ARRAY, 0, 2, 32},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14}, /* bind */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {'M','L'},
- }; /* _dpsQ */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,54);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 7 "c_gpr.psw"
-
- #line 43 "./sym/c_gpr.c"
- void multiline(const float data[], int x, int length)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- } _dpsQ;
-
- typedef struct {
- char obj6[2];
- } _dpsQ1;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 6, 54,
- {DPS_LITERAL|DPS_ARRAY, 0, 0, 48}, /* param[var]: data */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: length */
- {DPS_EXEC|DPS_NAME, 0, 2, 48}, /* ML */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72}, /* for */
- }; /* _dpsQ */
- static const _dpsQ1 _dpsF1 = {
- {'M','L'},
- }; /* _dpsQ1 */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 48;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].length = x;
- _dpsP[3].val.integerVal = length;
- _dpsP[0].val.arrayVal = _dps_offset;
- _dps_offset += x * sizeof(DPSBinObjGeneric);
- _dpsP[4].val.stringVal = _dps_offset;
- _dps_offset += 2;
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,52);
- DPSWriteTypedObjectArray(_dpsCurCtxt, dps_tFloat, (char *)data, x);
- DPSWriteStringChars(_dpsCurCtxt,(char *) &_dpsF1,2);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 12 "c_gpr.psw"
-